import React, { Component, PropTypes } from "react";
import { messages } from "share/common";
import { Button } from 'antd'

class BtnBack extends Component {

  handleBack = () => {
    const { close } = this.context;
    close();
  };

  render() {
    return (
      <Button onClick={this.handleBack}>{messages('common.back')/*返回*/}</Button>
    )
  }

  static contextTypes = {
    close: PropTypes.func
  }

}

export default BtnBack
